
#find_package(GTest REQUIRED PATHS ${GTEST_ROOT} NO_DEFAULT_PATH)
#find_package(GTest REQUIRED)

# 安装gtest cmake -DCMAKE_INSTALL_PREFIX=/your/installation/path -DINSTALL_GTEST=ON ..
# 然后执行make install 就会在安装目录里面得到include以及lib
include_directories(/home/wuyou/googletest/install/include /home/wuyou/course/cuda_dnn/test)

set(TEST_FILES 
    common.cpp 
    test_math_ops.cpp 
    #test_conv.cpp 
    test_main.cpp)
add_executable(run_tests ${TEST_FILES})

target_link_directories(run_tests PRIVATE /home/wuyou/googletest/install/lib)
target_link_libraries(run_tests libgtest.a libgtest_main.a tensor_library)